package mex1;

/**
 * Mex1 - shows how to set up a simple private inner thread class
 *      - and shows how things can get executed "out of order"
 * @author Anthony Varghese
 */
public class Mex1 {
   private static int a;

   private class PrintThread extends Thread{
	   public void run(){
		   System.out.println("    Print thread: " + a );
	   }
   }
   public static void main(String[] args) {
		a = 0;
		System.out.println(" Main: a is " + a );
		new Mex1().new PrintThread().start();

		a++;

		System.out.println(" Main: a is " + a );
	}
}
